﻿@model TCM.Employee

@{
    ViewBag.Title = "Create";
}

<h2>New Employee</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Employee</legend>       
        <ol>
        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
       
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

       

       @* <li class="editor-label">
            @Html.LabelFor(model => model.NATIONALID)
       
            @Html.EditorFor(model => model.NATIONALID)
            @Html.ValidationMessageFor(model => model.NATIONALID)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Email1)
      
            @Html.EditorFor(model => model.Email1)
            @Html.ValidationMessageFor(model => model.Email1)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Email2)
      
            @Html.EditorFor(model => model.Email2)
            @Html.ValidationMessageFor(model => model.Email2)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Mobile1)
      
            @Html.EditorFor(model => model.Mobile1)
            @Html.ValidationMessageFor(model => model.Mobile1)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Mobile2)
      
            @Html.EditorFor(model => model.Mobile2)
            @Html.ValidationMessageFor(model => model.Mobile2)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Address)
       
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </li>

      @*  <li class="editor-label">
            @Html.LabelFor(model => model.ADDRESSAR)
       
            @Html.EditorFor(model => model.ADDRESSAR)
            @Html.ValidationMessageFor(model => model.ADDRESSAR)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Phone)
      
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </li>

        <li class="editor-label">
            @Html.LabelFor(model => model.Education)
       
            @Html.EditorFor(model => model.Education)
            @Html.ValidationMessageFor(model => model.Education)
        </li>

        <li class="editor-label OneColumn">
            @Html.LabelFor(model => model.OtherDetails)
      
            @Html.TextAreaFor(model => model.OtherDetails)
            @Html.ValidationMessageFor(model => model.OtherDetails)
        </li>

        @*<li class="editor-label">
            @Html.LabelFor(model => model.USERID)
       
            @Html.EditorFor(model => model.USERID)
            @Html.ValidationMessageFor(model => model.USERID)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Salary)
      
            @Html.EditorFor(model => model.Salary)
            @Html.ValidationMessageFor(model => model.Salary)
        </li>

        

       @* <li class="editor-label">
            @Html.LabelFor(model => model.StatusID)
      
            @Html.DropDownList("StatusID", String.Empty)
            @Html.ValidationMessageFor(model => model.StatusID)
        </li>*@
        <p>
            <input type="submit" value="Create" />
        </p>
        </ol>
    </fieldset>
}

<li>
    @Html.ActionLink("Back to List", "Index")
</li>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
